﻿using System.Collections.Generic;
using System.Data;
namespace WPFExcelReport
{
    public partial class VKSTAGZUO
    {

        public void Insert(DataRow _dwAPK)
        { 
            InsertKSTAGZUO(_dwAPK, app.company);
            TBMain.Rows.InsertAt(_dwAPK, 0);
        } 
    }
    public partial class VKSTAGZUO
    {
        VKSLEIST _KS;
        public VKSLEIST KS
        {
            get
            {
                if (_KS == null) _KS = new VKSLEIST();
                return _KS;
            }
        }
        public string KSZKSTKRS { get { if (dwMaster == null) return ""; return dwMaster["KSZKSTKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZKSTKRS"] = value; OnPropertyChanged("KSZKSTKRS", value); } } //lENGth 2
        public string KSZKST { get { if (dwMaster == null) return ""; return dwMaster["KSZKST"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZKST"] = value; OnPropertyChanged("KSZKST", value); } } //lENGth 4
        public string KSZAGANG { get { if (dwMaster == null) return ""; return dwMaster["KSZAGANG"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZAGANG"] = value; OnPropertyChanged("KSZAGANG", value); } } //lENGth 15
        public string KSZLO { get { if (dwMaster == null) return ""; return dwMaster["KSZLO"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZLO"] = value; OnPropertyChanged("KSZLO", value); } } //lENGth 2
        public string KSZLB { get { if (dwMaster == null) return ""; return dwMaster["KSZLB"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZLB"] = value; OnPropertyChanged("KSZLB", value); } } //lENGth 2
        public string KSZLP { get { if (dwMaster == null) return ""; return dwMaster["KSZLP"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZLP"] = value; OnPropertyChanged("KSZLP", value); } } //lENGth 8

        public string KSZLIEFNR { get { if (dwMaster == null) return ""; return dwMaster["KSZLIEFNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZLIEFNR"] = value; OnPropertyChanged("KSZLIEFNR", value); } } //lENGth 8

        #region======ColumnSchema==========
        /*
                 public string KSZMANDANT { get { if (dwMaster == null) return ""; return dwMaster["KSZMANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZMANDANT"] = value; OnPropertyChanged("KSZMANDANT", value); } } //lENGth 2
                 public double KSZBASMGE { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZBASMGE"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZBASMGE"] = value; OnPropertyChanged("KSZBASMGE", value); } } //lENGth 0
                 public string KSZME { get { if (dwMaster == null) return ""; return dwMaster["KSZME"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZME"] = value; OnPropertyChanged("KSZME", value); } } //lENGth 1
                 public string KSZVORLZE { get { if (dwMaster == null) return ""; return dwMaster["KSZVORLZE"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZVORLZE"] = value; OnPropertyChanged("KSZVORLZE", value); } } //lENGth 2
                 public double KSZVORLZT { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZVORLZT"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZVORLZT"] = value; OnPropertyChanged("KSZVORLZT", value); } } //lENGth 0
                 public string KSZPERSZE { get { if (dwMaster == null) return ""; return dwMaster["KSZPERSZE"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZPERSZE"] = value; OnPropertyChanged("KSZPERSZE", value); } } //lENGth 2
                 public double KSZPERSZT { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZPERSZT"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZPERSZT"] = value; OnPropertyChanged("KSZPERSZT", value); } } //lENGth 0
                 public double KSZPERSMB { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZPERSMB"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZPERSMB"] = value; OnPropertyChanged("KSZPERSMB", value); } } //lENGth 0
                 public double KSZRUEZT { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZRUEZT"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZRUEZT"] = value; OnPropertyChanged("KSZRUEZT", value); } } //lENGth 0
                 public string KSZBVFS { get { if (dwMaster == null) return ""; return dwMaster["KSZBVFS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZBVFS"] = value; OnPropertyChanged("KSZBVFS", value); } } //lENGth 2
                 public string KSZBVFPA { get { if (dwMaster == null) return ""; return dwMaster["KSZBVFPA"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZBVFPA"] = value; OnPropertyChanged("KSZBVFPA", value); } } //lENGth 2
                 public string KSZBVFPK { get { if (dwMaster == null) return ""; return dwMaster["KSZBVFPK"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZBVFPK"] = value; OnPropertyChanged("KSZBVFPK", value); } } //lENGth 2
                 public string KSZBVRS { get { if (dwMaster == null) return ""; return dwMaster["KSZBVRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZBVRS"] = value; OnPropertyChanged("KSZBVRS", value); } } //lENGth 2
                 public string KSZBVRPA { get { if (dwMaster == null) return ""; return dwMaster["KSZBVRPA"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZBVRPA"] = value; OnPropertyChanged("KSZBVRPA", value); } } //lENGth 2
                 public string KSZBVRPK { get { if (dwMaster == null) return ""; return dwMaster["KSZBVRPK"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZBVRPK"] = value; OnPropertyChanged("KSZBVRPK", value); } } //lENGth 2
                 public string KSZAPS { get { if (dwMaster == null) return ""; return dwMaster["KSZAPS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZAPS"] = value; OnPropertyChanged("KSZAPS", value); } } //lENGth 2
                 public double KSZDPGS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZDPGS"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZDPGS"] = value; OnPropertyChanged("KSZDPGS", value); } } //lENGth 0
                 public string KSZAPPA { get { if (dwMaster == null) return ""; return dwMaster["KSZAPPA"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZAPPA"] = value; OnPropertyChanged("KSZAPPA", value); } } //lENGth 2
                 public double KSZDPGPA { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZDPGPA"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZDPGPA"] = value; OnPropertyChanged("KSZDPGPA", value); } } //lENGth 0
                 public string KSZAPPK { get { if (dwMaster == null) return ""; return dwMaster["KSZAPPK"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZAPPK"] = value; OnPropertyChanged("KSZAPPK", value); } } //lENGth 2
                 public double KSZDPGPK { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZDPGPK"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZDPGPK"] = value; OnPropertyChanged("KSZDPGPK", value); } } //lENGth 0
                 public double KSZNSS { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZNSS"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZNSS"] = value; OnPropertyChanged("KSZNSS", value); } } //lENGth 0
                 public double KSZNSPA { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZNSPA"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZNSPA"] = value; OnPropertyChanged("KSZNSPA", value); } } //lENGth 0
                 public double KSZNSPK { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZNSPK"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZNSPK"] = value; OnPropertyChanged("KSZNSPK", value); } } //lENGth 0
                 public string KSZMETHODE { get { if (dwMaster == null) return ""; return dwMaster["KSZMETHODE"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZMETHODE"] = value; OnPropertyChanged("KSZMETHODE", value); } } //lENGth 8
                 public string KSZRUEKZ { get { if (dwMaster == null) return ""; return dwMaster["KSZRUEKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZRUEKZ"] = value; OnPropertyChanged("KSZRUEKZ", value); } } //lENGth 1
                 public string KSZLAGPLKZ { get { if (dwMaster == null) return ""; return dwMaster["KSZLAGPLKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZLAGPLKZ"] = value; OnPropertyChanged("KSZLAGPLKZ", value); } } //lENGth 1
                 public string KSZMANUELKZ { get { if (dwMaster == null) return ""; return dwMaster["KSZMANUELKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZMANUELKZ"] = value; OnPropertyChanged("KSZMANUELKZ", value); } } //lENGth 1
                 public string KSZKENNUNG { get { if (dwMaster == null) return ""; return dwMaster["KSZKENNUNG"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZKENNUNG"] = value; OnPropertyChanged("KSZKENNUNG", value); } } //lENGth 2
                 public string KSZPREISLST { get { if (dwMaster == null) return ""; return dwMaster["KSZPREISLST"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZPREISLST"] = value; OnPropertyChanged("KSZPREISLST", value); } } //lENGth 5
                 public string KSZAUFBKZ { get { if (dwMaster == null) return ""; return dwMaster["KSZAUFBKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZAUFBKZ"] = value; OnPropertyChanged("KSZAUFBKZ", value); } } //lENGth 1
                 public string KSZKAPEINL { get { if (dwMaster == null) return ""; return dwMaster["KSZKAPEINL"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZKAPEINL"] = value; OnPropertyChanged("KSZKAPEINL", value); } } //lENGth 1
                 public double KSZBASMGE2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZBASMGE2"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZBASMGE2"] = value; OnPropertyChanged("KSZBASMGE2", value); } } //lENGth 0
                 public string KSZME2 { get { if (dwMaster == null) return ""; return dwMaster["KSZME2"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZME2"] = value; OnPropertyChanged("KSZME2", value); } } //lENGth 1
                 public string KSZMETHODE2 { get { if (dwMaster == null) return ""; return dwMaster["KSZMETHODE2"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZMETHODE2"] = value; OnPropertyChanged("KSZMETHODE2", value); } } //lENGth 8
                 public double KSZRUEZT2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZRUEZT2"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZRUEZT2"] = value; OnPropertyChanged("KSZRUEZT2", value); } } //lENGth 0
                 public string KSZFERTIG { get { if (dwMaster == null) return ""; return dwMaster["KSZFERTIG"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZFERTIG"] = value; OnPropertyChanged("KSZFERTIG", value); } } //lENGth 1
                 public string KSZKALKV { get { if (dwMaster == null) return ""; return dwMaster["KSZKALKV"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZKALKV"] = value; OnPropertyChanged("KSZKALKV", value); } } //lENGth 1
                 public string KSZGEBMELD { get { if (dwMaster == null) return ""; return dwMaster["KSZGEBMELD"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZGEBMELD"] = value; OnPropertyChanged("KSZGEBMELD", value); } } //lENGth 1
                 public string KSZGEBRAUS { get { if (dwMaster == null) return ""; return dwMaster["KSZGEBRAUS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZGEBRAUS"] = value; OnPropertyChanged("KSZGEBRAUS", value); } } //lENGth 1
                 public string KSZKALKKZ { get { if (dwMaster == null) return ""; return dwMaster["KSZKALKKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZKALKKZ"] = value; OnPropertyChanged("KSZKALKKZ", value); } } //lENGth 1
                 public string KSZPRFI { get { if (dwMaster == null) return ""; return dwMaster["KSZPRFI"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZPRFI"] = value; OnPropertyChanged("KSZPRFI", value); } } //lENGth 1
                 public string KSZPRVAR { get { if (dwMaster == null) return ""; return dwMaster["KSZPRVAR"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZPRVAR"] = value; OnPropertyChanged("KSZPRVAR", value); } } //lENGth 1
                 public string KSZPRBE { get { if (dwMaster == null) return ""; return dwMaster["KSZPRBE"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZPRBE"] = value; OnPropertyChanged("KSZPRBE", value); } } //lENGth 1
                 public string KSZPRZU { get { if (dwMaster == null) return ""; return dwMaster["KSZPRZU"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZPRZU"] = value; OnPropertyChanged("KSZPRZU", value); } } //lENGth 1
                 public string KSZPRDESS { get { if (dwMaster == null) return ""; return dwMaster["KSZPRDESS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZPRDESS"] = value; OnPropertyChanged("KSZPRDESS", value); } } //lENGth 1
                 public string KSZFILLER { get { if (dwMaster == null) return ""; return dwMaster["KSZFILLER"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZFILLER"] = value; OnPropertyChanged("KSZFILLER", value); } } //lENGth 23
                 public double KSZAENDZL { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZAENDZL"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZAENDZL"] = value; OnPropertyChanged("KSZAENDZL", value); } } //lENGth 0
                 public string KSZAENDBEN { get { if (dwMaster == null) return ""; return dwMaster["KSZAENDBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZAENDBEN"] = value; OnPropertyChanged("KSZAENDBEN", value); } } //lENGth 8
                 public double KSZAENDDAT { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZAENDDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZAENDDAT"] = value; OnPropertyChanged("KSZAENDDAT", value); } } //lENGth 0
                 public string KSZNEUBEN { get { if (dwMaster == null) return ""; return dwMaster["KSZNEUBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["KSZNEUBEN"] = value; OnPropertyChanged("KSZNEUBEN", value); } } //lENGth 8
                 public double KSZNEUDAT { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["KSZNEUDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["KSZNEUDAT"] = value; OnPropertyChanged("KSZNEUDAT", value); } } //lENGth 0
        */
        #endregion
    }
} 

